package com.softserveinc.autorent.controller;

import javax.ejb.EJB;
import javax.ejb.Stateless;

import com.softserveinc.autorent.model.Car;
import com.softserveinc.autorent.model.Order;

@Stateless
public class OrderController 
{
	@EJB
	private OrderManager orderManager;
	
	
	public void create(Order c)
	{
		orderManager.create(c);
	}
	
	public Order read(int id)
	{
		return orderManager.read(id);
	}
	
	public void update(Order c)
	{
		orderManager.update(c);
	}
	
	public void delete(int id)
	{
		 orderManager.delete(id);
	}
	
	public void delete(Order c)
	{
		 orderManager.delete(c);
	}
	    
}
